<template>
	<view class="body">
		<input 
		type="password" 
		class="uni-input common-input" 
		placeholder="输入你要绑定的邮箱"
		v-model="email"
		/>
		<input 
		type="password" 
		class="uni-input common-input" 
		placeholder="输入密码"
		v-model="pasword"
		/>
		<button 
		type="primary" 
		class="user-set-btn"
		:loading="loading"
		@tap="submit"
		>完成</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				email:'',
				
				pasword:'',
				disabled: true,
				loading: false
			}
		},
		methods: {
			check(){
				this.loading = true;
				if(!this.email || !this.pasword){
					uni.showToast({
						title:'请填写邮箱和密码',
						icon: 'none'
					});
					this.loading = false;
                    return;
				}
			},
			submit(){
				this.check();
			}
		}
	}
</script>

<style scoped>
@import '../../common/form.css';
</style>
